package o;

import android.app.Activity;
import androidx.annotation.NonNull;
import o.dio.c;

public class dim extends dxx {
    public dim(@NonNull Activity activity) {
        this.targetActivity = activity;
    }

    public String getName() {
        return "ProtocolChecker";
    }

    public void doCheck() {
        final diu ˊ = diu.ˊ();
        if (ˊ.ˎ()) {
            checkSuccess();
            return;
        }
        if (this.targetActivity != null && (this.targetActivity instanceof dhn)) {
            ((dhn) this.targetActivity).ˏ(8);
        }
        ˊ.ˏ(this.targetActivity, new c(this) {
            final /* synthetic */ dim ˏ;

            public void ॱ(boolean z) {
                if (!this.ˏ.targetActivity.isFinishing()) {
                    ˊ.ˋ(this.ˏ.targetActivity);
                    if (z) {
                        this.ˏ.checkSuccess();
                    } else {
                        this.ˏ.checkFailed();
                    }
                }
            }
        });
    }
}
